#include <iostream>
#include <string>

using namespace std;
class Point{
public:
    Point(double new_x,double new_y);
    Point(const Point& p);
    void disp();
private:
    double x;
    const double y; 		//常数据成员y
};
Point::Point(double new_x,double new_y): y(new_y){
    x=new_x;
}
Point::Point(const Point& p):y(p.y){
    x=p.x;
}
void Point::disp(){
    cout<<"该点的坐标为:("<<x<<","<<y<<")"<<endl;
}
int main(){
    Point p1(1,2),p2(p1);
    p1.disp ();
    p2.disp ();
    return 0;
}